package com.example.demo.config.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: njz
 * @Description:
 * @Date: create in 2022/6/6 14:16
 */
@Target(value = ElementType.METHOD)
@Retention(value = RetentionPolicy.RUNTIME)
@Documented
public @interface SwitchSource {
    /**
     * 默认切换的数据源KEY
     */
    String DEFAULT_NAME = "master";

    /**
     * 需要切换到数据的KEY
     */
    String value() default DEFAULT_NAME;

}
